package com.changwu.cwbase.temples.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.changwu.cwbase.R;
import com.changwu.cwbase.Constants;
import com.changwu.cwbase.base.FragmentBase;


/**
 * Created by changuw on 2018/2/12.
 */

public class TempleBundleFragment extends FragmentBase {
    private String mUid = "";

    public static Fragment newInstance(String uid) {
        Bundle bundle = new Bundle();
        bundle.putString(Constants.ID, uid);
        TempleBundleFragment fragment = new TempleBundleFragment();
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        // reqMerchant("", 1);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        Bundle bundle = getArguments();
        if (bundle != null) {
            mUid = bundle.getString(Constants.ID, "");
        }
        View view = inflater.inflate(R.layout.fm_temp, container, false);
        return view;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        initData();
    }

    private void initData() {
    }

    /* @OnClick({R.id.back})
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.back:
                finish();
                break;
        }
    }*/
}
